﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SweepOfCC
{
    public class BoomInformation : INotifyPropertyChanged
    {
        private bool isBoom;

        public bool IsBoom
        {
            get { return isBoom; }
            set
            {
                if (value == isBoom)
                    return;

                isBoom = value;
                OnPropertyChanged("IsBoom");
            }
        }

        private int aroundCount;

        public int AroundCount
        {
            get { return aroundCount; }
            set
            {
                if (value == aroundCount)
                    return;

                aroundCount = value;
                OnPropertyChanged("AroundCount");
            }
        }

        #region INotifyPropertyChanged

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        #endregion
    }
}
